<%@ page pageEncoding="utf-8"%> 
<%@page import="com.course.db.*"%>
 
<%  
	String path = request.getContextPath();  
	String basePath = request.getScheme()+"://"+request.getServerName()+
		(request.getServerPort() == 80 ? "" : (":"+request.getServerPort())) +path+"/";  
	String   userName   =   (String)session.getAttribute("userName");
	String   userType   =   (String)session.getAttribute("userType");
	String 	 menus=(String)session.getAttribute("menus");
	Student student = (Student)session.getAttribute("EditStudent");
%>

<script type="text/javascript">
	var base_path = "<%=basePath%>";
	var user_name="<%=userName%>";
	var user_type="<%=userType%>";
	var menus="<%=menus%>";

	function closebox(){ 
		   this.parent.Popup.prototype.reset_m(); //会刷新父页面
	}
</script>
<base href="<%=basePath%>">
<%
	request.setAttribute("page_title","温岭选课系统-课程申报详细");
%>
<link rel="stylesheet" href="css/text.css" />
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/style.css" />
<style>
	table{
		margin:0;
		padding:0;
		border-collapse:collapse;
		border:0;
		cellpadding:0;
		cellspacing:0; 
		width:100%;
		//height:100%;
	}
	
	td{
		text-align:center;
		vertical-align:middle;
		line-height:30px;
		font-size:13px;
		border-collapse:collapse;
		border:1px solid black;
		margin:0;
		padding:0;
		
	}

	.tdLeft{
		align:left;
		text-align:left;
		padding-left:20px;
		
	}
</style>

<script type='text/javascript'>
function close(){
	//var comment=document.getElementById("checkComment").value;
	//alert(comment);
	window.close();
	}   
</script>
	
<div style="width:100%; margin:1px;text-align:center;margin-top:10px;margin-bottom:50px;">
 	<p style="border:0;font-size:14px;padding-bottom:0;">
  		<b>编辑学生信息</b>
	</p>
	
	<form action="Student/edit.do?studentId=<%=student.getId() %>" method="post">
		<table style="width:80%; margin-left:0%;">
 			<tr>
 				<td>学号</td>
 				<td class="tdLeft"><input type="text" size="20" name="studentno" value="<%=student.getNo() %>"/></td>
 			</tr>
 			<tr>
 				<td>姓名</td>
 				<td class="tdLeft"><input type="text" size="50" name="name" value="<%=student.getName() %>"/></td>
 			</tr>
 			<tr>
 				<td>班级</td>
 				<td class="tdLeft"><input type="text" size="20" name="grade" value="<%=student.getGrade() %>"/></td>
 			</tr>
 		</table>
		<div id="btn" style="width:100%;align:right;">
			<input type="reset" name="Reset" value="重置"  style="margin-left:58%;"/>&nbsp;&nbsp;&nbsp;&nbsp;
      		<input type="submit" name="Submit" value="提交" />
		</div>
	</form>

</div>